<?
	$data['formula_text'] = $_POST['formula_text'];
	$data['percent'] = $_POST['percent'];
	$data['unit'] = $_POST['unit'];

	$db->update("assessment", $data, "id=".$_POST['id']);

	redirect("assessment.php?id=".$id);
?>